Developer --> Technical Publications
PATHMac OS 8 Developer Documentation > Human Interface Toolbox > Dialog Manager >

Mac OS 8 Dialog Manager Reference


Alert Feature Flag Constants

You can set the following bits in the alert flags field of the extended alert resource 'alrx' to specify the alert box's Appearance-compliant features. Alert feature flag constants are available with Appearance Manager 1.0 and later.

enum {
    kAlertFlagsUseThemeBackground           = (1 << 0),
    kAlertFlagsUseControlHierarchy          = (1 << 1),
    kAlertFlagsAlertIsMovable               = (1 << 2),
    kAlertFlagsUseThemeControls             = (1 << 3)
};
kAlertFlagsUseThemeBackground
If this bit (bit 0) is set, the Dialog Manager sets the alert box's background color or pattern.
kAlertFlagsUseControlHierarchy
If this bit (bit 1) is set, the Dialog Manager creates a root control in the alert box and establishes an embedding hierarchy. Any alert items become controls once the embedding hierarchy is established.
kAlertFlagsAlertIsMovable
If this bit (bit 2) is set, the alert box is movable modal. The Dialog Manager handles movable modal behavior such as dragging the alert box by its title bar or switching out of the application by clicking in another one.
kAlertFlagsUseThemeControls
If this bit (bit 3) is set, the Dialog Manager creates Appearance-compliant controls in your alert box. Otherwise, push buttons, checkboxes, and radio buttons will be displayed in their pre-Appearance forms when systemwide Appearance is off.

© 1998 Apple Computer, Inc. - (Last Updated 19 Nov 98)

Previous | Back Up One Level | Next |